/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #F9FBF8;
    color: #333333;
    line-height: 1.6;
}

/* 导航栏样式 */
.nav-container {
    width: 100%;
    background-color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    z-index: 999;
}

.nav {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 20px;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    color: #4CAF50;
}

/* 桌面端导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 35px;
}

.nav-menu a {
    text-decoration: none;
    color: #333333;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #4CAF50;
}

/* 汉堡菜单按钮 - 默认隐藏 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #4CAF50;
    margin: 3px 0;
    transition: 0.3s;
}

/* 移动端样式 */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    /* 隐藏桌面导航菜单 */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #FFFFFF;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: left 0.3s ease;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0 0 25px 0;
    }

    .nav-menu a {
        font-size: 18px;
        padding: 10px 20px;
        display: block;
        width: 100%;
        text-align: center;
    }

    /* 显示汉堡菜单 */
    .hamburger {
        display: flex;
    }

    /* 汉堡菜单动画 */
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* 页脚样式 */
.footer {
    width: 100%;
    background-color: #FFFFFF;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid #E8E8E8;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: #666666;
    font-size: 14px;
    padding: 0 20px;
}

.footer-content p {
    margin: 8px 0;
}

/* 按钮通用样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #388E3C;
}

/* 容器通用样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}